(function(){
		var _this=this;
	   return {
		   import:[
			   {
				   module:"module/sysFile/uploadBtn"
			   }
		   ],
	       before:function(data){
              return data;
	       },
	       after:function(){
			   var uploadBtn=new Module("module/sysFile/uploadBtn");
			   uploadBtn.params.fileNumLimit=1;
			   uploadBtn.params.uploadSuccess=function(data){
			   		var list=data.data;
			   		var url=list[0].url+"/"+list[0].id;
					_this.$("#imgUrl").attr("src",url);
				   _this.$("#imgUrlVal").val(url);
				   _this.$("#imgUrl").show();
			   }
			   uploadBtn.load("uploader");

	           this.$(".e-submit").click(function(){
	               if(!_this.$(".data-form").validate().form()){
	                   return;
	               }
	               ajaxPost({
	                   data:_this.toMap(".data-param"),
	                   url:"bannerSetting/save",
	                   success:function(data){
	                        toastr.success("新增成功");
	                       DsModule.to("module/bannerSetting/index");
	                   }
	               });
	           });
		   }
	   }
	});
